package com.example.demoserver.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * 
 * @TableName train_userquesions
 */
@TableName(value ="train_userquesions")
public class TrainUserquesions implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    private Integer userid;

    /**
     * 试题id
     */
    private String questionids;

    /**
     * 版本
     */
    private Integer saveversion;

    /**
     * 时间
     */
    private String savetime;

    /**
     * token
     */
    private String token;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Integer getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 用户id
     */
    public Integer getUserid() {
        return userid;
    }

    /**
     * 用户id
     */
    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    /**
     * 试题id
     */
    public String getQuestionids() {
        return questionids;
    }

    /**
     * 试题id
     */
    public void setQuestionids(String questionids) {
        this.questionids = questionids;
    }

    /**
     * 版本
     */
    public Integer getSaveversion() {
        return saveversion;
    }

    /**
     * 版本
     */
    public void setSaveversion(Integer saveversion) {
        this.saveversion = saveversion;
    }

    /**
     * 时间
     */
    public String getSavetime() {
        return savetime;
    }

    /**
     * 时间
     */
    public void setSavetime(String savetime) {
        this.savetime = savetime;
    }

    /**
     * token
     */
    public String getToken() {
        return token;
    }

    /**
     * token
     */
    public void setToken(String token) {
        this.token = token;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TrainUserquesions other = (TrainUserquesions) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getUserid() == null ? other.getUserid() == null : this.getUserid().equals(other.getUserid()))
            && (this.getQuestionids() == null ? other.getQuestionids() == null : this.getQuestionids().equals(other.getQuestionids()))
            && (this.getSaveversion() == null ? other.getSaveversion() == null : this.getSaveversion().equals(other.getSaveversion()))
            && (this.getSavetime() == null ? other.getSavetime() == null : this.getSavetime().equals(other.getSavetime()))
            && (this.getToken() == null ? other.getToken() == null : this.getToken().equals(other.getToken()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getUserid() == null) ? 0 : getUserid().hashCode());
        result = prime * result + ((getQuestionids() == null) ? 0 : getQuestionids().hashCode());
        result = prime * result + ((getSaveversion() == null) ? 0 : getSaveversion().hashCode());
        result = prime * result + ((getSavetime() == null) ? 0 : getSavetime().hashCode());
        result = prime * result + ((getToken() == null) ? 0 : getToken().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", userid=").append(userid);
        sb.append(", questionids=").append(questionids);
        sb.append(", saveversion=").append(saveversion);
        sb.append(", savetime=").append(savetime);
        sb.append(", token=").append(token);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}